package netty.test;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.netty.HeartbeatServer;
import com.netty.http.snoop.HttpSnoopServer;

public class test1 {

	protected static final Logger logger = LoggerFactory.getLogger(test1.class);

	public static void main(String[] args) {
		HeartbeatServer server1 = new HeartbeatServer();
		HttpSnoopServer server2 = new HttpSnoopServer();
		try {
			server1.start();
			server2.start();
			logger.info("服务器启动了！");
			logger.trace("trace");
			logger.debug("debug str");
			logger.info("info str");
			logger.warn("warn");
			logger.error("error");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

}
